//
//  HDNetWorking.h
//  ICBCSuisseCredit
//
//  Created by Victor on 2017/1/6.
//  Copyright © 2017年 Victor. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HFNetWork.h"
#import <UIKit/UIKit.h>


#define HOST ([NSString stringWithFormat:@"%@/app/",HOST_HEADER])

//#define HOST_HEADER @"http://39.106.10.2:8090/mentor-server"
/*!@brief ****   客户测试 */
#define HOST_HEADER @"http://39.106.10.2:9090/mentor-server"




//#define HOST_HEADER @"http://172.28.113.48:8090/mentor-server"



@interface HFNetWork : NSObject


extern NSString * Login;

extern NSString * Version;
/**
 method : post
 
 @param URL 链接
 @param parameters 参数
 @param isCancel 是否取消队列
 @param success 成功回调
 @param failure 失败回调
 */
+(void)postURL:(NSString *)URL withParameters:(NSDictionary *)parameters withOperationCancel:(BOOL)isCancel Success:(void(^)(NSDictionary *result))success failure:(void(^)(NSDictionary *error))failure;
+(void)getURL:(NSString *)URL withParameters:(NSDictionary *)parameters withOperationCancel:(BOOL)isCancel Success:(void(^)(NSDictionary *result))success failure:(void(^)(NSDictionary *error))failure;


@end

